<%@ page import="allocator.Turma" %>



<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'sala', 'error')} required">
	<label for="sala">
		<g:message code="turma.sala.label" default="Sala" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="sala" name="sala.id" from="${allocator.Sala.list()}" optionKey="id" required="" value="${turmaInstance?.sala?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'professor', 'error')} required">
	<label for="professor">
		<g:message code="turma.professor.label" default="Professor" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="professor" name="professor.id" from="${allocator.Professor.list()}" optionKey="id" required="" value="${turmaInstance?.professor?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'disciplina', 'error')} required">
	<label for="disciplina">
		<g:message code="turma.disciplina.label" default="Disciplina" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="disciplina" name="disciplina.id" from="${allocator.Disciplina.list()}" optionKey="id" required="" value="${turmaInstance?.disciplina?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'horario', 'error')} required">
	<label for="horario">
		<g:message code="turma.horario.label" default="Horario" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="horario" name="horario.id" from="${allocator.HorarioTurma.list()}" optionKey="id" required="" value="${turmaInstance?.horario?.id}" class="many-to-one"/>
</div>

<div class="span8">
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>Horários</th>
				<th>Seg</th>
				<th>Ter</th>
				<th>Qua</th>
				<th>Qui</th>
				<th>Sex</th>
				<th>Sab</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>18:30/19:20</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>19:20/20:10</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>							
			</tr>
			<tr>
				<td>20:20/21:10</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>							
			</tr>												
			<tr>
				<td>21:10/22:00</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>												
		</tbody>
	</table>
</div>